using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using UM_Model.Models.Mapping;

namespace UM_Model.Models
{
    public partial class UnionistsManagementContext : DbContext
    {
        static UnionistsManagementContext()
        {
            Database.SetInitializer<UnionistsManagementContext>(null);
        }

        public UnionistsManagementContext()
            : base("Name=UnionistsManagementContext")
        {
        }

        public DbSet<Activity> Activities { get; set; }
        public DbSet<ActivityRegister> ActivityRegisters { get; set; }
        public DbSet<Advertis> Advertises { get; set; }
        public DbSet<Album> Albums { get; set; }
        public DbSet<AspNetRole> AspNetRoles { get; set; }
        public DbSet<AspNetUserClaim> AspNetUserClaims { get; set; }
        public DbSet<AspNetUserLogin> AspNetUserLogins { get; set; }
        public DbSet<AspNetUser> AspNetUsers { get; set; }
        public DbSet<Comment> Comments { get; set; }
        public DbSet<Connective> Connectives { get; set; }
        public DbSet<Document> Documents { get; set; }
        public DbSet<DocumentsCatalog> DocumentsCatalogs { get; set; }
        public DbSet<FeedBack> FeedBacks { get; set; }
        public DbSet<Image> Images { get; set; }
        public DbSet<News> News { get; set; }
        public DbSet<sysdiagram> sysdiagrams { get; set; }
        public DbSet<Topic> Topics { get; set; }
        public DbSet<Unionist> Unionists { get; set; }
        public DbSet<Video> Videos { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new ActivityMap());
            modelBuilder.Configurations.Add(new ActivityRegisterMap());
            modelBuilder.Configurations.Add(new AdvertisMap());
            modelBuilder.Configurations.Add(new AlbumMap());
            modelBuilder.Configurations.Add(new AspNetRoleMap());
            modelBuilder.Configurations.Add(new AspNetUserClaimMap());
            modelBuilder.Configurations.Add(new AspNetUserLoginMap());
            modelBuilder.Configurations.Add(new AspNetUserMap());
            modelBuilder.Configurations.Add(new CommentMap());
            modelBuilder.Configurations.Add(new ConnectiveMap());
            modelBuilder.Configurations.Add(new DocumentMap());
            modelBuilder.Configurations.Add(new DocumentsCatalogMap());
            modelBuilder.Configurations.Add(new FeedBackMap());
            modelBuilder.Configurations.Add(new ImageMap());
            modelBuilder.Configurations.Add(new NewsMap());
            modelBuilder.Configurations.Add(new sysdiagramMap());
            modelBuilder.Configurations.Add(new TopicMap());
            modelBuilder.Configurations.Add(new UnionistMap());
            modelBuilder.Configurations.Add(new VideoMap());
        }
    }
}
